import java.util.Arrays;
public class work_06 {
    public static void main(String[] args) {
        //6)	int[] arr11 = {1,2,3,4,5,6,7,8,9,0,3,2,4,5,6,7,4,32,2,1,1,4,6,3};数组去重
        int[] arr11 = {1,2,3,4,5,6,7,8,9,0,3,2,4,5,6,7,4,32,2,1,1,4,6,3};
        int[] temps = new int[arr11.length];
        boolean isRepeat;
        int index = 0;
        for (int i = 0; i < arr11.length; i++) {
            isRepeat = false;
            for (int j = i+1; j < arr11.length; j++) {
                if(arr11[i] == arr11[j]){
                    isRepeat = true;
                    break;
                }
            }
            if(!isRepeat){
                temps[index++] = arr11[i];
            }
        }
        int[] newArr11 = new int[index];
        System.arraycopy(temps,0,newArr11,0,index);
        System.out.println(Arrays.toString(newArr11));
    }
}
